package com.bruce.utils.json;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/**
 * @author luotuan
 * @Description
 * @create 2020-09-23 14:31
 **/
public class Test {
    public static void main(String[] args) {
        List<Integer> list1 = new ArrayList<>();
        List<Integer> list2 = new ArrayList<>();
        list1.add(1);
        list1.add(2);
        list1.add(3);
        list1.add(5);
        list2.add(1);
        list2.add(2);
        list2.add(3);
        list2.add(6);
        list1.removeAll(list2);
        list1.forEach(System.out::println);
        People people = null;
        Objects.requireNonNull(people,"people为空");
    }
}
class People{
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public People setName(String name) {
        this.name = name;
        return this;
    }

    public int getAge() {
        return age;
    }

    public People setAge(int age) {
        this.age = age;
        return this;
    }
}
